// pages/demo04/demo04.js
Page({
    data: {
        list:[
            {
                id:0,
                name:"🍎",
                value:"苹果"
            },
            {
                id:1,
                name:"🍌",
                value:"香蕉"
            },
            {
                id:2,
                name:"🍉",
                value:"西瓜"
            },
            {
                id:3,
                name:"🍇",
                value:"葡萄"
            }

        ],
        checklist:[]
    },
    handleItemChange(e){
        const checklist = e.detail.value;
        this.setData({
            checklist
        })
    }
})